package cn.itsource.mapper;

import cn.itsource.domain.Teacher;
import cn.itsource.query.TeacherQuery;
import java.util.List;

public interface TeacherMapper {
    //基础方法5个
    List<Teacher> findAll();
    Teacher findOne(Integer id);
    void delete(Integer id);
    void add(Teacher teacher);
    void update(Teacher teacher);

    //分页+高级查询
    //分页查询中：查询总条数
    Integer getCount(TeacherQuery teacherQuery);
    //分页查询中：当前页的分页数据
    List<Teacher> getData(TeacherQuery teacherQuery);

    //批量删除
    void patchDel(Integer[] ids); //List<Integer> ids
}
